import request from '@/utils/request'
import qs from 'qs';

const baseUrl = "http://localhost:8080/api";

// 获取帖子
export function getForumList() {
    return request({
        url: `${baseUrl}/getContentList`,
        method: 'get',
    })
}

// 删除帖子
export function deleteForum(data) {
    return request({
        url: `${baseUrl}/deletecontent`,
        method: 'post',
        data: qs.stringify(data)
    })
}